import pickle

x = {1:'djy',2:'dxx'}

with open('example.pickle','rb') as file:
    book = pickle.load(file)
    print(book)